From 7b517f8891e34839e878c27199d1be14c4c6e51d Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 20 Oct 2006 10:11:45 +0100 Subject: [PATCH] [HVM][SVM] Avoid double-execution of NMI handler. Remove the do_nmi() call from the vmexit logic, as the NMI is held pending and will be handled in the context of the host when the STGI instruction is executed. Signed-off-by: Tom Woller --- xen/arch/x86/hvm/svm/svm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 56039df885..3de84b3345 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -54,7 +54,6 @@ /* External functions. We should move these to some suitable header file(s) */ -extern void do_nmi(struct cpu_user_regs *, unsigned long); extern int inst_copy_from_guest(unsigned char *buf, unsigned long guest_eip, int inst_len); extern uint32_t vlapic_update_ppr(struct vlapic *vlapic); @@ -2739,7 +2738,6 @@ asmlinkage void svm_vmexit_handler(struct cpu_user_regs *regs) break; case VMEXIT_NMI: - do_nmi(regs, 0); break; case VMEXIT_SMI: -- 2.30.2